<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> 
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户列表</title>
<link href="${ctx }/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/js/layui/css/layui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="${ctx }/js/layer/layer.js"></script>
<script type="text/javascript" src="${ctx }/js/common.js"></script>
</head>
<body>
<div class="listNavTitle">
	<p>
		<label>系统管理 ></label>
		<label>用户管理</label>
	</p>
</div>
<div class="rightinfo">
	<div class="formtitle">
		<span>管理用户列表</span>
		<div class="listBtnDiv">
			<shiro:hasPermission name="sysman:SYSTEM_ADMIN_MAN:add">
				<button id="add" class="layui-btn layui-btn-normal" title="button">新增用户</button>
			</shiro:hasPermission>
		</div>
	</div>
  <form id="searchForm">
	  <ul class="search_forminfo">
	    <li>
	      <label>用户名</label>
	      <input name="userName" type="text" class="search_dfinput" />
	    </li>
	    <li>
	      <label>角色</label>
	      <select name="rId">
	      	<option value="all">请选择</option>
	        <c:forEach items="${systemRoleList}" var="role">
	        	<option value="${role.roleCode }">${role.roleName }</option>
	        </c:forEach>
	      </select>
	    </li>
	    <li>
	      <label>&nbsp;</label>
			<button class="layui-btn layui-btn-normal" type="button" onclick="baseSearchQueryLayer('1','20');">查询</button>
	    </li>
	  </ul>
  </form>
  <div id="pageList">
  	
  </div>
</div>
</body>
</html>
<script type="text/javascript" src="${ctx }/js/layui/layui.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	
	initUrl('${ctx}/sysman/systemAdmin/adminList.do','${ctx}/sysman/systemAdmin/toAdd.do','${ctx}/sysman/systemAdmin/toChangeView.do','${ctx}/sysman/systemAdmin/delSystemAdmin.do');

    baseSearchQueryLayer(1,20);
	
	$("#add").click(function(){
  		toBaseAdd(false,700,450,true);
	});

});
</script>